package messagerieImpl;

import utilisateur.Utilisateur;

import java.util.GregorianCalendar;

/**
 * 
 * @modelguid {EF5025D3-692D-4247-BD82-B9E4FBF3288E}
 */
public class MessageImpl {
	/**
	 * 
	 * @modelguid {2FED1D4E-E98A-4184-959A-6DBD69D0C4E9}
	 */
	public Utilisateur _destinataire;

	/**
	 * 
	 * @modelguid {3836AEB4-4608-4FDE-B408-021AA305285D}
	 */
	private String _corps;

	/**
	 * 
	 * @modelguid {54B44E41-99DC-45F6-87A5-0703DAD6D88B}
	 */
	private GregorianCalendar _date;

	/**
	 * 
	 * @modelguid {87681E09-1A7F-41BD-A60A-CAAFADA44F5D}
	 */
	private String _sujet;

	/**
	 * 
	 * @modelguid {2E9083FA-76B8-4945-ABE0-3CD08E585029}
	 */
	private boolean _lu;

	/**
	 * 
	 * @modelguid {00EA20DB-A88A-48DD-A387-BA018A76513B}
	 */
	private Utilisateur _expediteur;

	public MessageImpl(Utilisateur exp, Utilisateur dest, String c, String s,
			GregorianCalendar d) {
		this.set_corps(c);
		this.set_date(d);
		this.set_lu(false);
		this.set_sujet(s);
		this.set_dest(dest);
		this.set_exp(exp);
	}

	/** @modelguid {F4FA729C-A76A-489F-A695-98B141CAE3E8} */
	public String get_corps() {
		/* Begin Template Expansion{D463887C-0F96-42C1-B8DC-90E8DC272BD5} */

		return _corps;
		/* End Template Expansion{D463887C-0F96-42C1-B8DC-90E8DC272BD5} */
	}

	/** @modelguid {309B1F30-F227-4BDB-BE82-1DC329B55720} */
	public void set_corps(String a_corps) {
		/* Begin Template Expansion{CA3F77E8-8B8B-47C4-A1B8-CE1F21AEAEA5} */
		_corps = a_corps;
		/* End Template Expansion{CA3F77E8-8B8B-47C4-A1B8-CE1F21AEAEA5} */
	}

	/** @modelguid {9EFB2A9E-9883-43B0-8B8B-441A696A1F95} */
	public GregorianCalendar get_date() {
		/* Begin Template Expansion{D463887C-0F96-42C1-B8DC-90E8DC272BD5} */

		return _date;
		/* End Template Expansion{D463887C-0F96-42C1-B8DC-90E8DC272BD5} */
	}

	/** @modelguid {B166731A-F4B3-4AA3-89E0-7A0725CDC050} */
	public void set_date(GregorianCalendar a_date) {
		/* Begin Template Expansion{CA3F77E8-8B8B-47C4-A1B8-CE1F21AEAEA5} */
		_date = a_date;
		/* End Template Expansion{CA3F77E8-8B8B-47C4-A1B8-CE1F21AEAEA5} */
	}

	/** @modelguid {8AC31FA7-28EF-4089-BF81-E68B5FA1290D} */
	public String get_sujet() {
		/* Begin Template Expansion{D463887C-0F96-42C1-B8DC-90E8DC272BD5} */

		return _sujet;
		/* End Template Expansion{D463887C-0F96-42C1-B8DC-90E8DC272BD5} */
	}

	/** @modelguid {606D2B28-7124-46D5-BE9C-BAEAF6892D29} */
	public void set_sujet(String a_sujet) {
		/* Begin Template Expansion{CA3F77E8-8B8B-47C4-A1B8-CE1F21AEAEA5} */
		_sujet = a_sujet;
		/* End Template Expansion{CA3F77E8-8B8B-47C4-A1B8-CE1F21AEAEA5} */
	}

	/** @modelguid {12E59EE4-C0FA-4855-A9AE-AFB11569CCE0} */
	public boolean get_lu() {
		/* Begin Template Expansion{D463887C-0F96-42C1-B8DC-90E8DC272BD5} */

		return _lu;
		/* End Template Expansion{D463887C-0F96-42C1-B8DC-90E8DC272BD5} */
	}

	/** @modelguid {4AACC56C-09A4-4699-BC89-2603683AD94B} */
	public void set_lu(boolean a_lu) {
		/* Begin Template Expansion{CA3F77E8-8B8B-47C4-A1B8-CE1F21AEAEA5} */
		_lu = a_lu;
		/* End Template Expansion{CA3F77E8-8B8B-47C4-A1B8-CE1F21AEAEA5} */
	}

	public Utilisateur get_exp() {
		return this._expediteur;
	}

	public void set_exp(Utilisateur exp) {
		this._expediteur = exp;
	}

	public Utilisateur get_dest() {
		return this._destinataire;
	}

	public void set_dest(Utilisateur dest) {
		this._destinataire = dest;
	}

	public void lire() {
		this.set_lu(true);
	}
}
